package com.crm.service.impl.returnMoney;

import com.crm.dao.mapper.customMapper.returnMoneyManagerCustomMapper.ModifyRoyaltyStatusLogCustomMapper;
import com.crm.model.qo.returnMoney.ModifyRoyaltyStatusLogQO;
import com.crm.model.vo.returnMoney.InsertModifyRoyaltyStatusLogVO;
import com.crm.model.vo.returnMoney.ModifyRoyaltyStatusLogVO;
import com.crm.service.returnMoney.ModifyRoyaltyStatusLogDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/11/25 13:41
 */
@Service
public class ModifyRoyaltyStatusLogDbServiceImpl implements ModifyRoyaltyStatusLogDbService {
    @Autowired
    private ModifyRoyaltyStatusLogCustomMapper modifyRoyaltyStatusLogCustomMapper;

    /**
     * 查询批量插入“修改提成发放状态日志”集合
     * @Author pym
     * @Date  2021/11/25 14:41
     * @param returnMoneyIds 回款记录表Ids
     * @param modifyRoyaltyStatusId 修改回款提成发放状态表Id
     * @param operateTime 操作时间
     * @param modifyAfter 提成发放状态修改后
     * @param accountId 账号Id
     * @return {@link {java.util.List<com.crm.model.vo.returnMoney.InsertModifyRoyaltyStatusLogVO>}}
     */
    @Override
    public List<InsertModifyRoyaltyStatusLogVO> selectInsertModifyRoyaltyStatusLogVOList(List<String> returnMoneyIds, String modifyRoyaltyStatusId,
                                                                                    Date operateTime, String modifyAfter, String accountId) {
        return modifyRoyaltyStatusLogCustomMapper.selectInsertModifyRoyaltyStatusLogVOList(returnMoneyIds,modifyRoyaltyStatusId,operateTime,modifyAfter,accountId);
    }

    /**
     * 批量插入“修改提成发放状态日志”
     * @Author pym
     * @Date  2021/11/25 15:57
     * @param insertModifyRoyaltyStatusLogVOList 修改提成发放状态日志集合
     * @return {@link {java.lang.Boolean}}
     */
    @Override
    public Boolean batchInsertModifyRoyaltyStatusLog(List<InsertModifyRoyaltyStatusLogVO> insertModifyRoyaltyStatusLogVOList) {
        return modifyRoyaltyStatusLogCustomMapper.batchInsertModifyRoyaltyStatusLog(insertModifyRoyaltyStatusLogVOList);
    }

    /**
     * 财务 - 回款管理 - 到款记录 - “修改回款提成发放状态日志”列表
     * @Author pym
     * @Date  2021/11/26 16:06
     * @param order 排序
     * @param modifyRoyaltyStatusLogQO 筛选条件
     * @return {@link {java.util.List<com.crm.model.vo.returnMoney.ModifyRoyaltyStatusLogVO>}}
     */
    @Override
    public List<ModifyRoyaltyStatusLogVO> selectModifyRoyaltyStatusLogList(String order, ModifyRoyaltyStatusLogQO modifyRoyaltyStatusLogQO) {
        return modifyRoyaltyStatusLogCustomMapper.selectModifyRoyaltyStatusLogList(order, modifyRoyaltyStatusLogQO);
    }

}
